//
//  HZMainViewController.m
//  WoYaoss
//
//  Created by 刘华舟 on 15/12/16.
//  Copyright © 2015年 幽冥小妖. All rights reserved.
//

#import "HZMainViewController.h"
#import "HZNormalWebViewController.h"

@interface HZMainViewController ()

@end

@implementation HZMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton* nextPage = [[UIButton alloc] initWithFrame:CGRectMake(120, 120, 50, 50)];
    nextPage.backgroundColor = [UIColor redColor];
    [nextPage addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:nextPage];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)click:(id)sender
{
    [self.navigationController pushViewController:[[HZNormalWebViewController alloc] init] animated:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
